package lew.bing.gwalo.rateLimiter;

import com.google.common.util.concurrent.RateLimiter;

/**
 * Created by 刘国兵 on 2018/7/8.
 */
public class Ratter {

    private RateLimiter limiter;
    private int lastRate;

    public Ratter(RateLimiter limiter, int lastRate) {
        this.limiter = limiter;
        this.lastRate = lastRate;
    }

    public RateLimiter getLimiter() {
        return limiter;
    }


    public int getLastRate() {
        return lastRate;
    }

    public void setLastRate(int lastRate) {
        this.lastRate = lastRate;
    }
}
